<?php

declare(strict_types = 1);

/**
 * Author: Jesse
 * Email : jessedev@163.com
 * Date: 2024/6/16 23:17
 * FileName: Cache.php
 * DESC: The Relentless Pursuit of Perfection.
 **/

namespace Common\Kernel\Facades;

use Hyperf\Cache\Cache as BaseCache;

/**
 * Class Cache.
 *
 * @method static mixed get($key, $default = null)
 * @method static mixed set($key, $value, $ttl = null)
 * @method static mixed delete($key)
 * @method static mixed clear()
 * @method static mixed getMultiple($keys, $default = null)
 * @method static mixed setMultiple($values, $ttl = null)
 * @method static mixed deleteMultiple($keys)
 * @method static mixed has($key)
 * @method static mixed pull($key, $default = null)
 * @method static bool  forget(string $key)
 * @method static mixed remember(string $key, int $minutes, \Closure $callback)
 *
 * @see \Hyperf\Cache\Cache
 */
class Cache  extends Facade
{
    /**
     * Get the registered name of the component.
     *
     * @return string
     */
    protected static function getFacadeAccessor() :string
    {
        return BaseCache::class;
    }
}

